import tkinter as tk
from tkinter import ttk
import time

root = tk.Tk()

w = "200"
h = "300"
root.wm_attributes("-alpha", 0.9)        # 透明度(0.0~1.0)
root.wm_attributes("-toolwindow", True)  # 置为工具窗口(没有最大最小按钮)
root.wm_attributes("-topmost", True)     # 永远处于顶层
# root.geometry(w + "x" + h)
root.geometry("600x500+200+20")
root.title("便签")

tree = ttk.Treeview(root)      # #创建表格对象
tree["columns"] = ("序号", "标题", "添加时间")     # #定义列
tree.column("序号", width=100)          # #设置列
tree.column("标题", width=300)
tree.column("添加时间", width=100)
tree.heading("序号", text="序号")        # #设置显示的表头名
tree.heading("标题", text="标题")
tree.heading("添加时间", text="添加时间")

for i in range(10):
    tree.insert("", i, text=str(i), values=("卡恩", "18", "180", "65"))

tree.pack()
"""

# 创建复选框
ch = []
for i in range(1,1,10):
    # _ + str(i) = tkinter.Checkbutton(win, text="money", variable=hobby1, command=updata)
    _i =  tk.Checkbutton(frm, text="xixi")
    ch.append(_i)
    # ch[i].grid()
for iterm in ch:
    print(iterm)
    iterm.pack()
"""

# 还可以调用如下方法去除窗口边框
# root.overrideredirect(True)
root.mainloop()
